package com.jingjin.humanityservice.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jingjin.model.humanity.po.ChatSession;
import com.jingjin.model.humanity.po.DailySentence;
import com.jingjin.model.thirdPartyWebsite.po.ThirdPartyWebsite;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DailySentenceMapper extends BaseMapper<DailySentence> {

    @Select("SELECT * FROM `daily_sentence`" +
            "ORDER BY RAND()" +
            "LIMIT 1;")
    DailySentence getRandom();
}
